package cn.sytton.taffe.framework.base.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.sql.Timestamp;

/**
 * 业务实体类,包括基础的4个基础字段
 *
 * @author skyrock
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class BaseCreatedEntity extends BaseEntity {

    /**
     * 创建userId
     */
    @JsonIgnore
    @TableField(updateStrategy = FieldStrategy.NEVER)
    private String createdUserId;
    /**
     * 创建时间
     */
    @JsonIgnore
    @TableField(updateStrategy = FieldStrategy.NEVER)
    private Timestamp createdTime;

}
